<?php
	namespace Profile\Model;
	use Think\Model;
	class GroupsModel extends Model{
		protected $_validate = array(
			array('yjl_groupname','require','团队名不能为空!',1),
			array('yjl_team','require','团队不能为空!',1),
			array('yjl_leader','require','负责人学号不能为空!',1),
			array('yjl_createtime','require','创建时间不能为空!',1)
		);
		protected $_auto = array(
			array('yjl_regtime','getdate',self::MODEL_INSERT,'callback'),
			array('yjl_check','0')
		);
		function getdate(){
			return date('Y-m-d');
		}
	}
?>


